package ncov.model;

import java.io.Serializable;
import java.util.List;
/**
 * (Grade)实体类
 *
 * @author makejava
 * @since 2020-06-04 20:02:11
 */
public class Grade implements Serializable {

    private Integer gradeId;
    private String gradeName;
    private Integer deptId;
    private Integer headcount;
    private Integer submittedCount;
    private Staff staff;
    // 手动建立关联，不使用hibernate
    private List<Student> students;

    public Integer getGradeId() {
        return gradeId;
    }

    public void setGradeId(Integer gradeId) {
        this.gradeId = gradeId;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getHeadcount() {
        return headcount;
    }

    public void setHeadcount(Integer headcount) {
        this.headcount = headcount;
    }

    public Integer getSubmittedCount() {
        return submittedCount;
    }

    public void setSubmittedCount(Integer submittedCount) {
        this.submittedCount = submittedCount;
    }

    public Staff getStaff() {
        return staff;
    }

    public void setStaff(Staff staff) {
        this.staff = staff;
    }

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "gradeId=" + gradeId +
                ", gradeName='" + gradeName + '\'' +
                ", deptId=" + deptId +
                ", headcount=" + headcount +
                ", submittedCount=" + submittedCount +
                '}';
    }
}